﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Paradoxlost.WebParts.Microsoft.Exchange;

namespace Paradoxlost.WebParts.Calendar
{
	class CalendarWeekView : CalendarView
	{
		public CalendarWeekView(ExchangeServiceBinding exchange)
			: this(exchange, DateTime.Today)
		{
		}

		public CalendarWeekView(ExchangeServiceBinding exchange, DateTime today)
			: base(exchange)
		{
			StartDate = today.AddDays((int)today.DayOfWeek * -1);
			EndDate = StartDate.AddDays(7);
		}
	}
}
